<script>

    var a = 1
    var a = 2

    let m = 10
    let m = 20

    console.log(a)
    console.log(m)//Uncaught SyntaxError: Identifier 'm' has already been declared

    //let声明的变量只能定义一次

</script>